package com.apexedu.theme.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by 建 on 2014/10/27.
 */
@Entity
@Table(name = "t_xxfb_zt")
public class TXxfbZt {
    private String wid;//主键
    private String ztbm;//主题编码
    private String ztmc;//主题名称
    private String ztms;//主题描述
    private String userid;//创建人
    private Date cjsj;//创建时间
    private String ordernum;//排序值

    @Id
    @Column(name = "wid", nullable = false, insertable = true, updatable = true, length = 50)
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "ztbm", nullable = true, insertable = true, updatable = true, length = 50)
    public String getZtbm() {
        return ztbm;
    }

    public void setZtbm(String ztbm) {
        this.ztbm = ztbm;
    }

    @Basic
    @Column(name = "ztmc")
    public String getZtmc() {
        return ztmc;
    }

    public void setZtmc(String ztmc) {
        this.ztmc = ztmc;
    }

    @Basic
    @Column(name = "ztms", nullable = true, insertable = true, updatable = true, length = 2147483647)
    public String getZtms() {
        return ztms;
    }

    public void setZtms(String ztms) {
        this.ztms = ztms;
    }

    @Basic
    @Column(name = "userid", nullable = true, insertable = true, updatable = true, length = 50)
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Basic
    @Column(name = "cjsj", nullable = true, insertable = true, updatable = true)
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }
    @Basic
    @Column(name="ORDERNUM")
    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TXxfbZt tXxfbZt = (TXxfbZt) o;

        if (cjsj != null ? !cjsj.equals(tXxfbZt.cjsj) : tXxfbZt.cjsj != null) return false;
        if (userid != null ? !userid.equals(tXxfbZt.userid) : tXxfbZt.userid != null) return false;
        if (wid != null ? !wid.equals(tXxfbZt.wid) : tXxfbZt.wid != null) return false;
        if (ztbm != null ? !ztbm.equals(tXxfbZt.ztbm) : tXxfbZt.ztbm != null) return false;
        if (ztms != null ? !ztms.equals(tXxfbZt.ztms) : tXxfbZt.ztms != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = wid != null ? wid.hashCode() : 0;
        result = 31 * result + (ztbm != null ? ztbm.hashCode() : 0);
        result = 31 * result + (ztms != null ? ztms.hashCode() : 0);
        result = 31 * result + (userid != null ? userid.hashCode() : 0);
        result = 31 * result + (cjsj != null ? cjsj.hashCode() : 0);
        return result;
    }
}
